#ifndef PADGRAPHICSVIEW_H
#define PADGRAPHICSVIEW_H

#include <QObject>
#include <QGraphicsView>
#include <QTimer>

class PadGraphicsView: public QGraphicsView
{

    Q_OBJECT

public:
    explicit PadGraphicsView(QWidget *parent = nullptr);
    ~PadGraphicsView();

protected:
    QGraphicsScene *m_scene;
    QTimer *m_timer;
    const int FixedWidth = 1500, FixedHeight = 540;

public slots:
    void acceptOneTap(float x, float y);
    void deleteItem(QGraphicsItem *item);
    void transPosToUV(float &x, float &y);

};

#endif // PADGRAPHICSVIEW_H
